import 'bootstrap/dist/css/bootstrap.min.css' // 加载第三方模块
import './assets/styles/reset.less' // 加载less文件
import DomCreate from './scripts/dom-create.js' // 加载js文件

new Promise(resolve => {
  setTimeout(() => { resolve(new Date()) })
}).then(value => {
  console.log(value)
  new DomCreate('app').renderer()
})

// 发起请求
fetch('/search/relative_project?q=webpack').then(value => value.json()).then(res => {
  console.log(res)
})
